<!DOCTYPE html>
<html style="background-color: #f5f5f5;">
<head>
  <meta charset="utf-8" />
  <title>{$seoconfig.title}</title>
  <meta content="{$seoconfig.description}" name="description">
  <meta content="{$seoconfig.keywords}" name="keywords">
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  {css href="__PUBLIC__/theme/blueideal/layui/css/layui.css"}
  {css href="__PUBLIC__/theme/blueideal/css/global.css"}
  {css href="__PUBLIC__/theme/blueideal/css/icon.css"}

  <style>
    .header {
      border-bottom: 1px solid #404553;
      border-right: 1px solid #404553;
    }
  </style>
</head>
<body class="fly-full">
<!-- 导航开始 -->
<div class="fly-header ">
  <!-- 粒子特效 -->
  <div id="particles-js">

  </div>
  <!-- 粒子特效结束 -->
  <div class="layui-container">
    <a class="fly-logo" href="{:url('index/index')}"> <img src="__PUBLIC__/theme/blueideal/images/logo.png" alt="layui" /> </a>
    <ul class="layui-nav fly-nav layui-hide-xs">
      <li class="layui-nav-item {if $modulename == 'index'} layui-this{/if}"><a href="{:url('index/index')}" > 首页</a></li>
      <li class="layui-nav-item {if $modulename == 'doclist'} layui-this{/if} layui-this</if>"> <a href="{:url('doc/doclist')}">全部文档</a></li>
      <li class="layui-nav-item {if $modulename == 'category'} layui-this{/if} layui-this</if>"> <a href="{:url('doc/doccate')}">分类</a></li>
      <li class="layui-nav-item {if $modulename == 'album'} layui-this{/if} layui-this</if>"> <a href="{:url('album/index')}" >专辑</a></li>
      {volist name="navlist['main']" id="vo"}
        <li class="layui-nav-item"> <a href="{$vo.link}" {if $vo.target == 1} target="_blank"{/if}>{$vo.name}</a></li>
      {/volist}
    </ul>
    <ul class="layui-nav fly-nav-user">
      <!-- 未登入的状态 -->
      {if $visitor['id'] == ''}
        <li class="layui-nav-item"> <a href="{:url('user/login')}">登入</a> </li>
        <li class="layui-nav-item"> <a href="{:url('user/register')}">注册</a> </li>
      {/if}
      <!-- 登入后的状态 -->
      {if $visitor['id'] > 0}
        <li class="layui-nav-item">
          <a class="fly-nav-avatar" href="{:url('ucenter/index')}">
            <cite class="layui-hide-xs">{$uid|getusername}</cite>
            <i class="layui-badge fly-badge-vip layui-hide-xs">积分{$uid|getuserscore}</i>
            <img src="{$uid|getavatar}">
          </a>
          <dl class="layui-nav-child">
            <dd><a href="{:url('ucenter/index')}"><i class="layui-icon">&#xe65e;</i>积分明细</a></dd>
            <dd><a href="{:url('ucenter/index')}"><i class="layui-icon">&#xe620;</i>用户中心</a></dd>
            <dd><a href="{:url('ucenter/usermail')}"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
            <dd><a href="{:url('ucenter/mydoclist')}"><i class="layui-icon">&#xe68e;</i>我的文档</a></dd>
            <hr style="margin: 5px 0;">
            <dd><a href="{:url('user/logout')}" style="text-align: center;">退出</a></dd>
          </dl>
        </li>
      {/if}
    </ul>
  </div>

</div>
<!-- 导航结束 -->
{css href="__PUBLIC__/theme/blueideal/layui/layui.js"}
{css href="__PUBLIC__/theme/blueideal/layui/particles.min.js"}
{css href="__PUBLIC__/theme/blueideal/layui/app.js"}
{block name='sep'}
<!-- 二级页次级导航结束 -->
{include file="public/sep" /}
{/block}
{block name='ad'}
<!-- 广告 -->
<div class="layui-container mb20">
  <div class="banner-wrap">
    {assign name='ad' value=':ad_store(2)'}
    {:htmlspecialchars_decode($ad)}
    <!--矩形广告位-->
  </div>
</div>
<!-- 广告 end-->
{/block}
{block name='main'}
{/block}
<div class="fly-footer">
  <p>
    {volist name="navlist['bottom']" id="vo"}
      <a href="{$vo.link}" alt="{$vo.alias}" {if $vo.target > 1} target="_blank"<{/if}>{$vo.name}</a>
    {/volist}
  </p>
  <p>2022 &copy; <a href="http://www.boyanglee.com/" target="_blank">迷奇出品，必属精品</a>{:config('web_config.site_icp')} 客服电话：{:config('web_config.site_tel')}</p> <div style="display: none;">
  {:config('web_config.statistics_code')}
</div>
</div>
</body>
</html>